﻿<Window
    x:Class="WpfMultitouchImageSearch.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Windows Search mit Multitouch UI"
    Height="350"
    Width="525"
    xmlns:my="http://schemas.microsoft.com/surface/2008">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition
                Height="52" />
            <RowDefinition
                Height="259*" />
        </Grid.RowDefinitions>
        <TextBox
            Height="34"
            Margin="13,11,132,0"
            Name="textBox1"
            VerticalAlignment="Top" />
        <my:SurfaceButton
            Content="Suchen"
            Margin="0,10,12,7"
            Name="button1"
            HorizontalAlignment="Right"
            Width="106"
            Click="button1_Click" />
        <my:ScatterView
            Name="_scatterView"
            ItemsSource="{Binding ElementName=_rssReader, Path=FeedItems}"
            Grid.Row="1">
            <my:ScatterView.ItemTemplate>
                <DataTemplate>
                    <StackPanel
                        Orientation="Horizontal">
                        <Image
                            Source="{Binding Thumbnail.MediumBitmapSource}" />
                        <TextBlock
                            Text="{Binding Properties.System.Title.Value}" />
                    </StackPanel>
                </DataTemplate>
            </my:ScatterView.ItemTemplate>
        </my:ScatterView>
    </Grid>
</Window>
